/**
 * 
 */
package design_pattern.command.audioplayer;

/**
 * @author linzq
 * 
 */
public class StopCommand implements Command {

  private AudioPlayer player;

  public StopCommand(AudioPlayer player) {
    this.player = player;
  }

  @Override
  public void execute() {
    player.stop();
  }

}
